package com.sky.service;

import com.sky.dto.CategoryDTO;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.result.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public interface CategoryService {
    /*
     * 分页查询
     *
     * */
    public Result page(CategoryPageQueryDTO categoryPageQueryDTO);
    //分类查询
    public Result list(Integer type);
    //新增分类
    public Result add(CategoryDTO categoryDTO);
    //修改启用类型
    public Result updatestatus(Integer status,Long id);
    //修改
    public Result update(CategoryDTO categoryDTO);
    //删除根据id
    public Result date(Long id);
}
